import store from '@/store/index'
export default {
  methods: {
    checkPermission(key) {
      try {
        return store.state.user.userInfo.roles.points.includes(key)
      } catch (error) {
        return false
      }
    }
  }
}
